package com.cash.app.ui.login.api

import com.cash.app.constant.AppConstant.API_LOGIN
import com.cash.app.constant.AppConstant.API_GET_CODE
import com.cash.app.net.BaseResponse
import com.cash.app.ui.login.model.GetCodeRequest
import com.cash.app.ui.login.model.LoginRequest
import com.cash.app.ui.login.model.LoginResponse
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.POST

interface LoginAPIService {
    // Login API
    @POST(API_LOGIN)
    suspend fun login(@Body request: LoginRequest): Response<BaseResponse<LoginResponse>>

    // Get verification code API
    @POST(API_GET_CODE)
    suspend fun getCode(@Body request: GetCodeRequest): Response<BaseResponse<Unit>>
}